package com.example.demo.Mappers;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.Param;

/**
 * Created by Administrator on 2018/4/3.
 */
@Mapper
public interface TransactionaltestMapper {
    @Insert("insert into trat1(a1,a2)values(#{a1},#{a2})")
    @Options(useGeneratedKeys = true, keyColumn = "id", keyProperty = "id")
    void Savetrat1(@Param("a1") String a1, @Param("a2") String a2);
    @Insert("insert into trat2(b1,b2)values(#{b1},#{b2})")
    int Savetrat2(@Param("b1") String b1,@Param("b2") String b2);
}
